angular.module('userProfile', []).controller('userProfileCtrl', [ '$scope', '$http', function($scope, $http) {
    $scope.existingUser = {
        oldPassword: "",
        newPassword: "",
        confirmPassword: ""
    };
    $scope.changePassword = function(){
        $http.post('api/user/changePassword', $scope.existingUser).success(function(data){

        });
    }
}]);